//用指针对数组进行排序

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

char *resort(char *a);   
int main(int argc, char *argv[]) {  
          
    char a[100];  
    gets(a);  
    puts(resort(a));  
    return 0;  
}  

char *resort( char *a )
{
	int len;
	char tem;
	len=strlen(a);
	for ( int j=0 ; j<len-1 ; j++ )
	{
		for ( int i=0 ; i<len-j-1 ; i++ )
		{
			if ( a[i+1] < a[i] )
			{
				tem = a[i];
				a[i] = a[i+1];
				a[i+1] = tem;
			}
		}
	}
	return a;
}